﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace SIG.ViewModel.Admin
{
    public class EmailSetVM
    {

        [Display(Name = "电子邮箱")]  
        [EmailAddress(ErrorMessage="邮箱格式不正确")]
        public string From { get; set; }

        [Display(Name = "SMTP服务器")]  
        public string SmtpServer { get; set; }
        [Display(Name = "端口")]  
        public int Port { get; set; }
        [Display(Name = "用户名")]  
        public string UserName { get; set; }

        [Display(Name = "密码")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Display(Name = "SSL")]
        public bool EnableSsl { get; set; }
      
    }
}
